#include "MyApplication.h"

#ifdef Q_QDOC
MyApplication::MyApplication(int &argc, char **argv) : QApplication(argc, argv) {
    initApp();
}
#else
MyApplication::MyApplication(int &argc, char **argv, int _internal)
    : QApplication(argc, argv, _internal) {
    initApp();
}

MyApplication::~MyApplication() {
    quitApp();
}

void MyApplication::initApp() {
    m_dataManager = new DataManager(this);
}

void MyApplication::quitApp() {
    delete m_dataManager;
}

DataManager *MyApplication::dataManager() const {
    return m_dataManager;
}
#endif
